package spring.cloud.tasks.common.curator;

import org.apache.curator.framework.api.transaction.CuratorTransactionResult;

import java.util.Collection;

public interface TransactionalCurator {
    TransactionalCurator create(String node, String value) throws Exception;

    TransactionalCurator update(String node, String value) throws Exception;

    Collection<CuratorTransactionResult> commit() throws Exception;
}
